﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@model sipfe.model.dataAccess.SIPMaeDependencia
@using Resources;
@using sipfe.util;
@{   
    Layout = "~/Views/Shared/Layaout/general/_LayoutPopGeneral.cshtml";   
}
<script type="text/javascript" language="javascript" src="@Url.Content(@properties.dependenciaJS)" ></script>
<script type="text/javascript">
    $(function () {
        calendarFechaFuturo('dtFecIniVig', '1');
    });
</script>
@using (Html.BeginForm("AgregarRegionInp", "DependenciaMante", FormMethod.Post))
{
    @Html.ValidationSummary(true)
    <fieldset style="width:600px;" class="fieldsetStyle1">
        <legend class="tituloBlue9">Registrar Datos de la Región</legend>
         <table border="0" style="width:580px;" cellpadding="2" cellspacing="0" class="tablaDetalle1">
	     <tbody>							
	        <tr>
                <td style="width: 120px;" class="tituloCelesteB8">Nombre de la Región</td>
		        <td style="width: 1px;">:</td>
		        <td>@Html.TextBoxFor(model => model.vDescripcion, new {style="width:450px;", maxlength=150, onkeyup="javascript:this.value=this.value.toUpperCase();" }) 
                    @Html.ValidationMessageFor(model => model.vDescripcion)
		        </td>
	        </tr>             
             <tr>
                <td class="tituloCelesteB8">Fec. Inicio Vigencia</td>
		        <td>:</td>
		        <td>
                    @Html.TextBoxFor(model => model.dtFecIniVig, new { @maxlength = "10", style="width:60px;"})                    
                    @Html.ValidationMessageFor(model => model.dtFecIniVig)
		        </td>
	        </tr>             
            <tr><td colspan="3" align="center"><input type="button" value="Registrar Datos" onclick="javascript: agregarRegionFinal(this.form);" /></td></tr>
            
             @Html.Hidden("nIdeUsuReg",@Session["nIdeUsuario"])
             @Html.Hidden("dtFecReg", @DateTime.Now.ToString())
             @Html.Hidden("nEstado", 1)
             @Html.Hidden("nIdeTipoDep", Constante.getInstance().N_IDE_TIPO_DEP)
         </tbody>
         </table>       
    </fieldset>
}

